<template>
  <div :class="menuCls">
    <ul>
      <slot></slot>
    </ul>
  </div>
</template>

<script>
import Vue from 'vue'
export default {
  name: 'Menu',
  props: {
    value: {
      type: String,
      default: () => ''
    },
    mode: {
      type: String,
      default: () => 'vertical'
    }
  },
  data() {
    return {
      routeValue: ''
    }
  },
  provide() {
    return {
      itemObj: new Vue({
        data() {
          return { name: '' }
        }
      })
    }
  },
  computed: {
    menuCls: function() {
      return `${this.mode}-menu-wrapper`
    }
  }
}
</script>
